

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>共享商城 - {{admin_setting('name')}}</title>
    <meta name="description" content="{{admin_setting('description')}}">
    <meta name="keywords" content="{{admin_setting('keywords')}}">
    <!-- 引入与首页一致的Tailwind CSS -->
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
    
    <!-- 复用首页的Tailwind配置 -->
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#165DFF',
                        secondary: '#36CFC9',
                        accent: '#FF7D00',
                        neutral: '#F5F7FA',
                        dark: '#1D2129',
                    },
                    fontFamily: {
                        inter: ['Inter', 'sans-serif'],
                    },
                }
            }
        }
    </script>

    <!-- 添加与首页一致的样式 -->
    <style type="text/tailwindcss">
        @layer utilities {
            .card-hover {
                @apply hover:shadow-lg hover:-translate-y-1 transition-all duration-300;
            }
            .gradient-bg {
                background: linear-gradient(135deg, #165DFF 0%, #36CFC9 100%);
            }
            .stat-card {
                @apply bg-white p-6 rounded-xl shadow-md hover:shadow-xl transition-all duration-300 border border-gray-100;
            }
        }
    </style>
</head>
<body class="font-inter bg-white text-dark antialiased">
    <!-- 复用首页导航栏结构 -->
    <header id="navbar" class="fixed w-full top-0 z-50 transition-all duration-300 bg-white/95 backdrop-blur-sm shadow-sm">
        <div class="container mx-auto px-4 md:px-6 py-3 flex items-center justify-between">
            <div class="flex items-center space-x-2">
                <div class="w-10 h-10 rounded-lg gradient-bg flex items-center justify-center text-white">
                    <i class="fa-solid fa-link text-xl"></i>
                </div>
                <span class="text-xl font-bold text-dark">共享商城</span>
            </div>
            
            <!-- 桌面导航 -->
            <nav class="hidden md:flex items-center space-x-8">
                <a href="/" class="text-dark hover:text-primary transition-colors font-medium">首页</a>
                <a href="#features" class="text-dark hover:text-primary transition-colors font-medium">功能</a>
                <a href="#pricing" class="text-dark hover:text-primary transition-colors font-medium">价格</a>
                <a href="/dwz" class="text-dark hover:text-primary transition-colors font-medium">共享短网址</a>
                <a href="#faq" class="text-dark hover:text-primary transition-colors font-medium">常见问题</a>
            </nav>
            
            <div class="flex items-center space-x-4">
                @if (session('user'))
                    <a href="/user/" class="hidden md:block text-dark hover:text-primary transition-colors font-medium">用户中心</a>
                @else
                    <a href="/user/login" class="hidden md:block text-dark hover:text-primary transition-colors font-medium">登录</a>
                @endif
                
                <a href="/user/register" class="bg-primary hover:bg-primary/90 text-white px-5 py-2 rounded-lg font-medium transition-all shadow-md hover:shadow-lg">免费注册</a>
                
                <!-- 移动端菜单按钮 -->
                <button id="menuBtn" class="md:hidden text-dark focus:outline-none">
                    <i class="fa-solid fa-bars text-xl"></i>
                </button>
            </div>
        </div>
        
        <!-- 移动端导航菜单 -->
        <div id="mobileMenu" class="md:hidden hidden bg-white shadow-lg absolute w-full">
            <div class="container mx-auto px-4 py-3 flex flex-col space-y-4">
                <a href="#" class="text-dark hover:text-primary transition-colors font-medium py-2 border-b border-gray-100">首页</a>
                <a href="#features" class="text-dark hover:text-primary transition-colors font-medium py-2 border-b border-gray-100">功能</a>
                <a href="#pricing" class="text-dark hover:text-primary transition-colors font-medium py-2 border-b border-gray-100">价格</a>
                <a href="#use-cases" class="text-dark hover:text-primary transition-colors font-medium py-2 border-b border-gray-100">使用示例</a>
                <a href="#faq" class="text-dark hover:text-primary transition-colors font-medium py-2 border-b border-gray-100">常见问题</a>
                <a href="#" class="text-dark hover:text-primary transition-colors font-medium py-2">登录</a>
            </div>
        </div>
    </header>

    <!-- 主体内容优化 -->
    <main class="pt-20 container mx-auto px-4 md:px-6">
        <!-- Hero区域 -->
        <section class="py-16 md:py-24 bg-neutral">
            <div class="container mx-auto px-4 md:px-6">
                <div class="text-center max-w-3xl mx-auto mb-16">
                    <span class="text-primary font-medium">短链接服务</span>
                    <h2 class="text-[clamp(2rem,4vw,3rem)] font-bold text-dark mt-2 mb-6">
                        共享优质短链接域名
                    </h2>
                    <p class="text-lg text-gray-600">
                        提供稳定、快速的短链接服务，让您的链接更简洁易用
                    </p>
                </div>
            </div>
        </section>

        <!-- 域名列表 -->
        <section class="py-8">
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
                @foreach($domain as $domain)
                    <div class="feature-card">
                        <div class="w-12 h-12 rounded-lg bg-primary/10 flex items-center justify-center text-primary mb-4">
                            <i class="fa-solid fa-globe"></i>
                        </div>
                        <h3 class="text-xl font-bold mb-3">{{ $domain->domain }}</h3>
                        <p class="text-gray-600 mb-4">
                            {{ $domain->description ?: '优质短链接服务域名' }}
                        </p>
                        <div class="flex items-center justify-between text-sm text-gray-500">
                            <span>创建于 {{ date('Y-m-d', strtotime($domain->created_at)) }}</span>
                            <a href="/dwz/{{ $domain->id }}" class="text-primary hover:underline">
                                立即使用 <i class="fa-solid fa-arrow-right ml-1"></i>
                            </a>
                        </div>
                    </div>
                @endforeach
            </div>
        </section>

        <!-- 特色功能 -->
        <section class="py-16">
            <div class="text-center max-w-3xl mx-auto mb-16">
                <span class="text-primary font-medium">核心优势</span>
                <h2 class="text-[clamp(2rem,4vw,3rem)] font-bold text-dark mt-2 mb-6">
                    为什么选择我们的短链接服务
                </h2>
            </div>
            
            <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
                <div class="stat-card">
                    <div class="text-4xl font-bold text-primary mb-2">0.003秒</div>
                    <div class="text-gray-600">平均响应时间</div>
                </div>
                <div class="stat-card">
                    <div class="text-4xl font-bold text-primary mb-2">99.99%</div>
                    <div class="text-gray-600">服务可用性</div>
                </div>
                <div class="stat-card">
                    <div class="text-4xl font-bold text-primary mb-2">全球加速</div>
                    <div class="text-gray-600">CDN节点覆盖</div>
                </div>
            </div>
        </section>
    </main>
@include('index.mifa.footer')